How to extracting individual dimensions from $node->content['dimensions'] in Drupal's Ubercart?

Posted by Walden on Stack Overflow See other posts from Stack Overflow or by Walden
Published on 2010-06-10T19:50:36Z Indexed on 2010/06/10 19:53 UTC
Read the original article Hit count: 292

Filed under:
|
|

On my Ubercart node-product.tpl.php page, I am trying to extract the individual product dimensions (height, weight, length) from the more generic: print $node->content['dimensions'] ['#value']; which returns "Dimensions: 72in. × 42in. × 30in."

Using var_dump(get_defined_vars()); I'm able to see that the dimensions are being outputted independently, but can't seem to get them to print. on the page. What is the proper way to call the dimensions individually?

© Stack Overflow or respective owner

Related posts about php

Related posts about drupal